/*
 * @Descripttion:
 * @Author: voanit
 * @Date: 2022-05-05 16:11:15
 * @LastEditors: voanit
 * @LastEditTime: 2022-05-06 09:40:18
 */
import React from 'react'
import Son from './Son'
import Son2 from './Son2'
import Sister from './Sister'
import Brother from './Brother'
class Father extends React.Component {
  state = {
    sMsg: '',
    FF: '',
  }
  fatherHandle = (msg) => {
    console.log('father', msg)
    this.setState({
      sMsg: msg,
    })
  }

  FatherHandle2 = (msg) => {
    console.log(msg, 88444)
    this.setState({
      FF: msg,
    })
  }
  render() {
    return (
      <div>
        御剑乘风来,除魔天地间!===Father==={this.state.sMsg}
        <hr />
        <Son ff="我是father" f1={this.fatherHandle}>
          ssss
        </Son>
        <hr />
        <Son2 ff="我是father=>2儿子" f1={this.fatherHandle}></Son2>
        <hr />
        <Sister f2={this.FatherHandle2}>123</Sister>
        <hr />
        <Brother f3={this.state.FF}></Brother>
      </div>
    )
  }
}
export default Father
